package com.lse_api.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * LSE 角色表 2020/07/16更新
 * </p>
 *
 * @author 祁雪
 * @since 2020-07-16
 */
@Getter
@Setter
public class LseRole implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 角色名称
     */
    private String name;

    /**
     * 角色详情
     */
    private String info;

    /**
     * 角色等级 默认2级
     */
    private Integer levels;

    /**
     * 创建日期
     */
    private Date createTime;

    /**
     * 角色与权限绑定
     */
    @TableField(exist = false)
    private LseRolePermissions lseRolePermission;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Integer getLevels() {
        return levels;
    }

    public void setLevels(Integer levels) {
        this.levels = levels;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "LseRole{" +
                "id=" + id +
                ", name=" + name +
                ", info=" + info +
                ", levels=" + levels +
                ", createTime=" + createTime +
                "}";
    }
}
